package com.xing.annotation;

import java.lang.annotation.Annotation;

@Configuration
@Test1
public class TestHH {


    public static void main(String[] args) {
//       System.out.println(TestHH.class.getAnnotation(Test2.class));
//       System.out.println(TestHH.class.getAnnotations());
//       Annotation annotation = TestHH.class.getAnnotation(Test2.class);
//       Annotation[] s2 = annotation.getClass().getAnnotations();
//       System.out.println(s2);
//一
//
//       System.out.println(annotation.getClass().getAnnotation(Test1.class));


       Configuration c = TestHH.class.getAnnotation(Configuration.class);
       System.out.println(c);
       Annotation[] s2 = TestHH.class.getAnnotations();
       System.out.println(s2);


       System.out.println(Test2.class.isAnnotationPresent(Test1.class));
       Annotation[] t2s = Test2.class.getAnnotations();
       System.out.println(Test2.class.getAnnotations());
    }
}
